//
//  SNSystemNotifyController.m
//  app
//
//  Created by 王少宁 on 15/8/27.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "SNSystemNotifyController.h"

@interface SNSystemNotifyController ()

@end

@implementation SNSystemNotifyController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationController.navigationBar.hidden = NO;
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationItem.title = @"最新公告";
    
    [self createView];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
}

- (void)createView
{
    UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, self.navigationAndStatusBarHeight+10, SCREEN_WIDTH - 30, 30)];
    titleLabel.text = self.titleStr;
    [self.view addSubview:titleLabel];
    
    UILabel * lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, titleLabel.ufo.yy, SCREEN_WIDTH, UP(1))];
    lineLabel.layer.borderColor = [XCommon hexStringToColor:kColor_gray_line].CGColor;
    lineLabel.layer.borderWidth = UP(1);
    [self.view addSubview:lineLabel];
    
    UITextView * contentTextView = [[UITextView alloc] initWithFrame:CGRectMake(10, lineLabel.ufo.yy, SCREEN_WIDTH - 20, ScreenHeight - lineLabel.ufo.yy - 10)];
    contentTextView.editable = NO;
    contentTextView.text = self.contentStr;
    contentTextView.font = JKAppGlobleFontMenu;
    contentTextView.textColor = [XCommon hexStringToColor:@"#585858"];
    [self.view addSubview:contentTextView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
